#pragma once
#include <iostream>
using namespace std;
class BaseMenu
{
private:
	int choice;
	bool exitMenu;
public:

	BaseMenu(void)
	{
		choice = 0;
		exitMenu = false;
	}

	~BaseMenu(void)
	{
	}

	void Show()
	{
		cout << string(50, '\n');  // Clear screen
		cout << "Main Menu" << endl;
		cout << "1. Add Student" << endl;
		cout << "2. Remove Student" << endl;
		cout << "3. Add Course to Student" << endl;
		cout << "4. Add Course Result to Student" << endl;
		cout << "5. Save to File" << endl;
		cout << "6. Load from File" << endl;
		cout << "7. Exit" << endl;
	}

	void MakeChoice()
	{
		cin >> choice;
		if( choice == 7 )
			exitMenu = true;
	}

	bool GetExitMenu() { return this->exitMenu; }
	int GetChoice() { return this->choice; }

	void SetChoice( int choice ) { this->choice = choice; } 

};

